//
//  YFHomeGoodsView.m
//  QuanJieShopProject
//
//  Created by apple on 2018/5/14.
//  Copyright © 2018年 apple. All rights reserved.
//

#import "YFHomeGoodsView.h"

@implementation YFHomeGoodsView

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self makeView:frame];
    }
    return self;
}

- (void)makeView:(CGRect)frame {
    
//    UILabel *titleLable = [[UILabel alloc]init];
//    titleLable.textColor = [UIColor colorWithRGBRed:235 green:178 blue:254];
////    titleLable.text = @"品牌折扣";
//    titleLable.font = [UIFont systemFontOfSize:13];
//    [self addSubview:titleLable];
    
//    UILabel *detailLabel = [[UILabel alloc] init];
//    detailLabel.textColor = [UIColor grayColor];
////    detailLabel.text = @"低至5折";
//    detailLabel.font = [UIFont systemFontOfSize:11];
//    [self addSubview:detailLabel];
    
    UIImageView *imgView = [[UIImageView alloc] init];
    imgView.frame = CGRectMake(0, 0, frame.size.width, frame.size.height);
    [self addSubview:imgView];
    self.imgView = imgView;
    
//    [titleLable mas_makeConstraints:^(MASConstraintMaker *make) {
//        make.left.equalTo(self).with.offset(10);
//        make.right.equalTo(self);
//        make.top.equalTo(self).with.offset(10);
//        make.height.equalTo(@20);
//    }];
//
//    [imgView mas_makeConstraints:^(MASConstraintMaker *make) {
//        make.width.equalTo(self);
//        make.height.equalTo(imgView.mas_width);
//        make.bottom.left.equalTo(self);
//    }];
    
//    [detailLabel mas_makeConstraints:^(MASConstraintMaker *make) {
////        make.left.equalTo(self).with.offset(10);
////        make.right.equalTo(self);
////        make.top.equalTo(titleLable.mas_bottom);
////        make.bottom.equalTo(imgView.mas_top);
//    }];
}

@end
